package com.cloud.service;

import com.cloud.model.system.SysErrorLog;
import com.cloud.repository.SysErrorLogReporsistry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by Administrator on 2017/11/16 0016.
 */
@Service
public class SysErrorLogService {
    @Autowired
    private SysErrorLogReporsistry sysErrorLogReporsistry;

    @Transactional
    public void saveLog(SysErrorLog sysErrorLog) {
        sysErrorLogReporsistry.save(sysErrorLog);
    }
}
